/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package datas;

import beans.User;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;

/**
 *
 * @author havn
 */
@WebService(serviceName = "WebMethods")
public class WebMethods {

    private UserObj user;
    

    public WebMethods() {
        user = new UserObj();
    }

    /** This is a sample web service operation */
    @WebMethod(operationName = "Payment")
    public boolean Payment(@WebParam(name = "user") User u, @WebParam(name = "money") int money) {
        return user.payment(u, money);
    }
}
